package cq.com.cn.model;

import java.util.Date;

public class BooksModel {
	 private int id;
	 private double price;
	 private int stock;
	 private String author;
	 private String bookName;
	 private String bookUrl;
	 private String publisher;
	 private Date publisherTime;
	 private int bookType;
 
	public BooksModel() {
	}

	public BooksModel(int id, double price, int stock, String author, String bookName, String bookUrl, String publisher, Date publisherTime, int bookType) {
		this.id = id;
		this.price = price;
		this.stock = stock;
		this.author = author;
		this.bookName = bookName;
		this.bookUrl = bookUrl;
		this.publisher = publisher;
		this.publisherTime = publisherTime;
		this.bookType = bookType;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getBookUrl() {
		return bookUrl;
	}

	public void setBookUrl(String bookUrl) {
		this.bookUrl = bookUrl;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public Date getPublisherTime() {
		return publisherTime;
	}

	public void setPublisherTime(Date publisherTime) {
		this.publisherTime = publisherTime;
	}

	public int getBookType() {
		return bookType;
	}

	public void setBookType(int bookType) {
		this.bookType = bookType;
	}

	@Override
	public String toString() {
		return "BooksModel{" +
				"id=" + id +
				", price=" + price +
				", stock=" + stock +
				", author='" + author + '\'' +
				", bookName='" + bookName + '\'' +
				", bookUrl='" + bookUrl + '\'' +
				", publisher='" + publisher + '\'' +
				", publisherTime=" + publisherTime +
				", bookType=" + bookType +
				'}';
	}
}
